function message(title) {
    wx.showToast({
        title: title,
        icon: 'none'
    })
}
function request(url, method, success) {
    //session已存在
    var mainUrl = '';
    var header = {
        'content-type': 'application/json',
        'Cookie': wx.getStorageSync("sessionId")
    }
    wx.request({
        url: mainUrl + url,
        header: header,
        method: method,
        'content-type': 'application/json',
        success: function (res) {
            success(res);
        },
        fail: function (res) {
            console.log(res);
        }
    })
}
module.exports = {
    message: message,
    request: request
}